#include "carina/common/testing.hh"

#include "carina/carina-effect-driver.hh"

CE_TEST("Testing parser basic functionalities")
{
    Carina::string name = "main";
    auto _node = Carina::AST::CreateNode<Carina::Effect::FunctionSet>(CE_DEFAULT_LOCATION, name);
    CE_ASSERT(_node.getNodeName() == "main", "Hm, our function for creating stuff is useless");
    
    Carina::Effect::Driver effect_driver;
    auto func_set = effect_driver.createStackNode<Carina::Effect::FunctionSet>(CE_DEFAULT_LOCATION, name);
    CE_ASSERT(func_set->getNodeName() == "main", "When we create a node we expect it to have that we have passed in");
}